package com.wenheng.config;

import com.wenheng.filter.PageInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Auther: 文恒
 * @Date: 2021/3/22 - 03 - 22 -14:51
 * @Description:com.wenheng.filter.config
 * @version:1.0
 */
@Configuration
public class InterceptorConfig implements WebMvcConfigurer{
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new PageInterceptor()).addPathPatterns("/**");
    }
}
